/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/14.
	 */
	var Breadcrumb = __webpack_require__(29);
	var InvestAction = __webpack_require__(60);
	var Progress = __webpack_require__(33);
	var Tooltip = __webpack_require__(2);
	var InputNumber = __webpack_require__(31);
	var Tabs = __webpack_require__(22);
	var TabItem = Tabs.TabItem;
	var Pagination = __webpack_require__(26);
	var GuaranteeList = {
	    "营业执照": "icon-yyzz",
	    "融资方经营场所实地认证": "icon-rzfjrcsdzz",
	    "税务登记证": "icon-swdjz",
	    "账务表已审计": "icon-zwbysj",
	    "组织机构代码证": "icon-zjjgdmz",
	    "融资方从业年限": "icon-rzfcynx",
	    "基本账户开户许可": "icon-jbzfkfxk",
	    "融资方已在银行授信": "icon-rzfyzyhsx",
	    "融资方成立年限": "icon-rzfclnx",
	    "人行征信-无不良信用记录": "icon-rhzx",
	    "授信方式-抵押": "icon-sxfsdy",
	    "授信方式-质押": "icon-sxfszy",
	    "融资方经营情况调查": "icon-rzfjyqkdc"
	}

	var InvestRecord = React.createClass({displayName: "InvestRecord",
	    getInitialState:function () {
	        return{
	            InvestmentRecordVal: PageDM.InvestmentRecord.value,
	            pageVal: PageDM.pagination.value
	        }
	    },
	    pageClick:function (v) {
	        PageDM.pagination.setValue({curPage:v});
	        PageDM.pagination.onClick(v);
	    },
	    render:function () {
	        var _this  = this;
	        return (
	            React.createElement("div", null, 
	                React.createElement("table", {className: "table-3 table-even"}, 
	                    React.createElement("thead", null, 
	                    React.createElement("tr", null, 
	                        React.createElement("th", null, "投资用户"), 
	                        React.createElement("th", null, "投资金额"), 
	                        React.createElement("th", null, "是否投资成功"), 
	                        React.createElement("th", null, "投资时间")
	                    )
	                    ), 
	                    React.createElement("tbody", {ref: "investmentRecordTb"}, 
	                    
	                        _this.state.InvestmentRecordVal.length > 0 ? (_this.state.InvestmentRecordVal.map(function(item,index){
	                            var PayAmount = UFormatter.formatMoney(Number(item.PayAmount),2);
	                            return (
	                                React.createElement("tr", null, 
	                                    React.createElement("td", null, item.PayUserName), 
	                                    React.createElement("td", null, PayAmount), 
	                                    React.createElement("td", null, React.createElement("span", {className: "iconfont icon-success"})), 
	                                    React.createElement("td", null, item.PayTime)
	                                )
	                            )
	                        })):(React.createElement("tr", null, React.createElement("td", {colSpan: "4"}, "暂无记录")))
	                    
	                    )
	                ), 
	                React.createElement(Pagination, {pageVal: _this.state.pageVal, onClick: this.pageClick})
	            )
	        )
	    }

	});
	var Root = React.createClass({displayName: "Root",
	    getInitialState: function () {
	        return {
	            pageVal: PageDM.pagination.value,
	            ProDetailVal: PageDM.ProDetail.value,
	            InvestmentRecordVal: PageDM.InvestmentRecord.value,
	            PartsCount:PageDM.ProDetail.value.FinanceDetail.EachPartAmount * PageDM.ProDetail.value.FinanceDetail.MinInvestPartsCount
	        }
	    },

	    componentDidMount: function(){
	        var _this = this;

	        UEventHub.on(PageDM.ProDetail.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.setState({
	                ProDetailVal: v,
	                PartsCount:PageDM.ProDetail.value.FinanceDetail.EachPartAmount * PageDM.ProDetail.value.FinanceDetail.MinInvestPartsCount
	            });
	        });
	        UEventHub.on(PageDM.InvestmentRecord.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.refs.InvestRecord.setState({
	                InvestmentRecordVal: v
	            });
	        });
	        UEventHub.on(PageDM.pagination.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.refs.InvestRecord.setState({
	                pageVal: v
	            });
	        });
	        UEventHub.on('countOver',function (v) {
	            _this.setState({
	                ProDetailVal:{
	                    FinanceDetail:v
	                }
	            })
	        });
	        UEventHub.emit("pageLoad","hello world!");
	    },
	    investSumChangeHandler: function(v){
	        var FinanceDetail = PageDM.ProDetail.value.FinanceDetail;
	        var val = parseInt(v / FinanceDetail.AppendBuyAmount) * FinanceDetail.AppendBuyAmount;

	        var money = UMath.Earnings(val, this.state.ProDetailVal.FinanceDetail.Interest, this.state.ProDetailVal.FinanceDetail.Duration, PageDM.days.value);
	        money = UFormatter.formatMoney(money);
	        this.refs['expectedReturn'].innerHTML = money;
	        window.PageDM.ProDetail.value.FinanceDetail.PartsCount = val;
	        this.state.PartsCount = val;
	        this.refs.inputnumber.setValue(val);
	    },
	    tabsCallBack: function(index){
	        this.defaultActiveKey = index;
	    },
	    defaultActiveKey:0,
	    render: function () {
	        var _this = this, FinanceDetail = _this.state.ProDetailVal.FinanceDetail;
	        //投资动作Props
	        var actionData = {
	            minFlag:_this.state.ProDetailVal.FinanceDetail.minFlag?_this.state.ProDetailVal.FinanceDetail.minFlag:false,
	            flag:{
	                login:_this.state.ProDetailVal.FinanceDetail.login,
	                loginUrl:_this.state.ProDetailVal.FinanceDetail.loginUrl,
	                confirmUrl:_this.state.ProDetailVal.FinanceDetail.confirmUrl,
	                ProjectStatus:_this.state.ProDetailVal.FinanceDetail.ProjectStatus,
	                JMBeginTime:_this.state.ProDetailVal.FinanceDetail.JMBeginTime,
	                ProjectBeginTime:_this.state.ProDetailVal.FinanceDetail.ProjectBeginTime,
	                MinInvestPartsCount:_this.state.ProDetailVal.FinanceDetail.MinInvestPartsCount,
	                MaxInvestPartsCount:_this.state.ProDetailVal.FinanceDetail.MaxInvestPartsCount,
	                EachPartAmount:_this.state.ProDetailVal.FinanceDetail.EachPartAmount
	            }
	        };
	        //数字格式化
	        var _start = UFormatter.formatMoney(FinanceDetail.MinInvestPartsCount * FinanceDetail.EachPartAmount),//投资说明，起投金额
	            _each = UFormatter.formatMoney(Number(FinanceDetail.AppendBuyAmount)),//投资说明，递增金额
	            TotalAmount = UFormatter.formatMoney(Number(FinanceDetail.TotalAmount),2),//本金
	            _minPart = UFormatter.formatMoney(FinanceDetail.EachPartAmount*FinanceDetail.MinInvestPartsCount),
	            _earnings = UMath.Earnings(_this.state.PartsCount, _this.state.ProDetailVal.FinanceDetail.Interest, _this.state.ProDetailVal.FinanceDetail.Duration, PageDM.days.value),
	            _expect = UMath.Earnings(_this.state.ProDetailVal.FinanceDetail.TotalAmount, _this.state.ProDetailVal.FinanceDetail.Interest, _this.state.ProDetailVal.FinanceDetail.Duration, PageDM.days.value);
	        _expect = UFormatter.formatMoney(_expect,2);//项目详情-预期收益
	        _earnings = UFormatter.formatMoney(_earnings,2);//预期收益
	        //未登录剩余金额
	        var unLoginRemain = UFormatter.formatMoney(FinanceDetail.RemainPartsCount * FinanceDetail.EachPartAmount);
	        //已登录
	        var loginMax = FinanceDetail.MaxInvestPartsCount * FinanceDetail.EachPartAmount,
	            MinInvest = FinanceDetail.MinInvestPartsCount * FinanceDetail.EachPartAmount;
	            // console.log('用户在该项目的剩余可投金额: ' + loginMax);
	            // console.log('项目最小投资金额: ' + MinInvest);

	        /*活动标志*/
	        var Aflag_Icon = FinanceDetail.Aflag_Icon;
	        var arr_aflag, resetAflag = [];
	        if(Aflag_Icon){
	            arr_aflag = Aflag_Icon.split(',');
	            for(var i = 0;i < arr_aflag.length;i++){
	                resetAflag.push(arr_aflag[i].split('|'));
	            }
	        }

	        //尾单金额
	        var _value = _this.state.PartsCount;
	        if(loginMax < MinInvest){ //个人剩余能投金额小于起投金额
	            if(FinanceDetail.RemainPartsCount <= loginMax){   //项目剩余金额小于个人剩余能投金额
	                _value = FinanceDetail.RemainPartsCount * FinanceDetail.EachPartAmount;
	            }else if(FinanceDetail.RemainPartsCount > loginMax) {//项目剩余金额小于个人剩余能投金额
	                _value = 0;
	            }
	        }
	        _earnings = UMath.Earnings(_value, _this.state.ProDetailVal.FinanceDetail.Interest, _this.state.ProDetailVal.FinanceDetail.Duration, PageDM.days.value);
	        _earnings = UFormatter.formatMoney(_earnings,2);//预期收益
	        return (
	            React.createElement("div", null, 
	                React.createElement("div", {className: "container"}, 
	                    React.createElement(Breadcrumb, {	separator: ">"}, 
	                        React.createElement(Breadcrumb.Item, {href: PageDM.URL.home}, "首页"), 
	                        React.createElement(Breadcrumb.Item, {href: PageDM.URL.investList}, "我要投资"), 
	                        React.createElement(Breadcrumb.Item, null, "项目详情")
	                    ), 

	                    React.createElement("div", {className: "project-detail", ref: "projectDetail"}, 
	                        React.createElement("h1", {className: "title"}, 
	                            FinanceDetail.ProjectName?FinanceDetail.ProjectName:"", 
	                            FinanceDetail.IsExclusive?
	                                (FinanceDetail.IsExclusivePublic?
	                                    React.createElement(Tooltip, {className: "bg-icon tag tag-zhuang", title: "专属项目，需输入项目专属识别码才可投标"}) :
	                                    React.createElement("span", {className: "bg-icon tag tag-zhuang"}))
	                                :"", 
	                            
	                            resetAflag ?
	                                resetAflag.map(function(v,j){
	                                    var _src = "../content/images/ActImage/"+v[0];
	                                    if(v[1]){
	                                        return React.createElement(Tooltip, {title: v[1], className: "tag"}, React.createElement("img", {src: _src}))
	                                    }else{
	                                        return React.createElement("span", {className: "tag"}, React.createElement("img", {src: _src}))
	                                    }
	                                }) : ""
	                            
	                        ), 
	                        React.createElement("div", {className: "row clearfix"}, 
	                            React.createElement("div", {className: "f-left col-left"}, 
	                                React.createElement("div", {className: "detail-info clearfix"}, 
	                                    React.createElement("ul", null, 
	                                        React.createElement("li", null, 
	                                            _this.state.ProDetailVal.FinanceDetail.Interest?(React.createElement("p", {className: "fc-main"}, React.createElement("b", null, _this.state.ProDetailVal.FinanceDetail.Interest), "%")):"", 
	                                            _this.state.ProDetailVal.FinanceDetail.Interest?(React.createElement("p", {className: "fc-light"}, "预期年化收益率")):""
	                                        ), 
	                                        React.createElement("li", null, 
	                                            _this.state.ProDetailVal.FinanceDetail.Duration?(React.createElement("p", null, React.createElement("b", null, _this.state.ProDetailVal.FinanceDetail.Duration), "天")):"", 
	                                            _this.state.ProDetailVal.FinanceDetail.Duration?(React.createElement("p", {className: "fc-light"}, "项目期限")):""
	                                        ), 
	                                        React.createElement("li", null, 
	                                            _this.state.ProDetailVal.FinanceDetail.TotalAmount?(React.createElement("p", null, React.createElement("b", null, _this.state.ProDetailVal.FinanceDetail.TotalAmount<10000?_this.state.ProDetailVal.FinanceDetail.TotalAmount:(_this.state.ProDetailVal.FinanceDetail.TotalAmount/10000).toFixed(2)), _this.state.ProDetailVal.FinanceDetail.TotalAmount<10000?"元":"万元")):"", 
	                                            _this.state.ProDetailVal.FinanceDetail.TotalAmount?(React.createElement("p", {className: "fc-light"}, "项目规模")):""
	                                        )
	                                    )
	                                ), 
	                                React.createElement("div", {className: "detail-progress clearfix"}, 
	                                    React.createElement("label", null, "募集进度："), 
	                                    React.createElement(Progress, {className: "progress", type: "line", percent: _this.state.ProDetailVal.FinanceDetail.Progress}), 
	                                    React.createElement("p", {className: "f-left"}, "见证银行：", React.createElement("img", {className: "detail-logo", src: "../content/images/logo2.jpg", alt: ""}), " ", _this.state.ProDetailVal.FinanceDetail.BankName)
	                                )
	                            ), 
	                            React.createElement("div", {className: "f-right detail-other"}, 
	                                React.createElement("p", null, "项目起息日：", _this.state.ProDetailVal.FinanceDetail.ValueBegin), 
	                                React.createElement("p", null, "项目到期日：", _this.state.ProDetailVal.FinanceDetail.RepayBegin), 
	                                React.createElement("p", null, "还款方式：到期一次性还本付息"), 
	                                React.createElement("p", null, "投资说明：", _start, "元起投，递增金额", _each, "元")
	                            )
	                        ), 
	                        React.createElement("div", {className: "line"}, React.createElement("b", {className: "iconfont icon-ring"}), " ", React.createElement("i", {className: "iconfont icon-ring"})), 
	                        React.createElement("div", {className: "row-bid clearfix"}, 
	                            React.createElement("div", {className: "f-left bid-money clearfix"}, 
	                                React.createElement("div", {className: "money f-left"}, React.createElement("label", null, "投资金额："), 
	                                    React.createElement(InputNumber, {step: _this.state.ProDetailVal.FinanceDetail.AppendBuyAmount, 
	                                                 max: _this.state.ProDetailVal.FinanceDetail.EachPartAmount*_this.state.ProDetailVal.FinanceDetail.MaxInvestPartsCount, 
	                                                 min: _this.state.ProDetailVal.FinanceDetail.EachPartAmount*_this.state.ProDetailVal.FinanceDetail.MinInvestPartsCount, 
	                                                 value: _value, 
	                                                 ref: "inputnumber", 
	                                                 disabled: (FinanceDetail.ProjectStatus>2 || FinanceDetail.RemainPartsCount < FinanceDetail.MinInvestPartsCount || loginMax < MinInvest)? true:false, 
	                                                 onChange: this.investSumChangeHandler.bind(this)}), 
	                                    React.createElement("div", {className: "unit"}, "元"), 
	                                    React.createElement("div", {className: "tips fc-main"}, 
	                                        _this.state.ProDetailVal.FinanceDetail.ProjectStatus > 2?"":( !actionData.flag.login ?
	                                            React.createElement("p", null, "项目剩余可投金额为", unLoginRemain, "元") :
	                                            (loginMax < MinInvest) ?
	                                                (FinanceDetail.RemainPartsCount <= loginMax ?
	                                                    React.createElement("p", null, "您在此项目的剩余可投金额为", UFormatter.formatMoney(FinanceDetail.RemainPartsCount * FinanceDetail.EachPartAmount), "元") :
	                                                    React.createElement("p", null, "您在此项目的剩余可投金额不足，请选择其他项目")
	                                                ) :
	                                                React.createElement("p", null, "您在此项目的剩余可投金额为", UFormatter.formatMoney(loginMax), "元")
	                                        )
	                                    )
	                                ), 
	                                React.createElement("div", {className: "income f-left"}, "预期收益：", React.createElement("b", {className: "fc-main", ref: "expectedReturn"}, _earnings), " 元")
	                            ), 
	                            React.createElement("div", {className: "f-right bid"}, 
	                                React.createElement(InvestAction, {data: actionData})
	                            )
	                        ), 
	                        React.createElement("span", {className: "angle angle-top"}), 
	                        React.createElement("span", {className: "angle angle-bottom"})
	                    ), 

	                    React.createElement("div", {className: "project-info"}, 
	                        React.createElement(Tabs, {defaultActiveKey: _this.defaultActiveKey, callback: _this.tabsCallBack.bind(_this)}, 
	                            React.createElement(TabItem, {tab: "项目详情"}, 
	                                React.createElement("div", {ref: "projectDetailTb"}, 
	                                    React.createElement("div", {className: "title"}, React.createElement("b", null), "项目用途", React.createElement("b", null)), 
	                                    React.createElement("div", {className: "content"}, 
	                                        React.createElement("pre", null, _this.state.ProDetailVal.ProjectContent.Content)
	                                    ), 
	                                    React.createElement("div", {className: "title"}, React.createElement("b", null), "银行见证信息", React.createElement("b", null)), 
	                                    React.createElement("div", {className: "content bank-info"}, 
	                                        React.createElement("ul", {className: "clearfix"}, 
	                                            
	                                                _this.state.ProDetailVal.GuaranteeList.map(function(item,index){
	                                                    return (React.createElement("li", null, React.createElement("i", {className: GuaranteeList[item.Title]}), item.Title));
	                                                })
	                                            
	                                        )
	                                    ), 
	                                    React.createElement("div", {className: "title"}, React.createElement("b", null), "预期项目收益", React.createElement("b", null)), 
	                                    React.createElement("div", {className: "content"}, 
	                                        React.createElement("table", {className: "table-1"}, 
	                                            React.createElement("tbody", null, 
	                                                React.createElement("tr", null, 
	                                                    React.createElement("td", null), 
	                                                    React.createElement("td", {className: "fc-link"}, "金额"), 
	                                                    React.createElement("td", {className: "fc-link"}, "还款时间")
	                                                ), 
	                                                React.createElement("tr", null, 
	                                                    React.createElement("td", {className: "fc-light"}, "预期收益"), 
	                                                    React.createElement("td", {className: "fc-light"}, React.createElement("b", {className: "fc-main"}, _expect), " 元"), 
	                                                    React.createElement("td", {className: "fc-light"}, _this.state.ProDetailVal.FinanceDetail.RepayBegin)
	                                                ), 
	                                                React.createElement("tr", null, 
	                                                    React.createElement("td", {className: "fc-light"}, "本金"), 
	                                                    React.createElement("td", {className: "fc-light"}, React.createElement("b", {className: "fc-main"}, TotalAmount), " 元"), 
	                                                    React.createElement("td", {className: "fc-light"}, _this.state.ProDetailVal.FinanceDetail.RepayBegin)
	                                                )
	                                            )

	                                        ), 
	                                        React.createElement("div", {className: "tips fc-light"}, "免责声明：项目预期收益仅供参考，具体以实际收益为准")
	                                    ), 
	                                    React.createElement("div", {className: "title"}, React.createElement("b", null), "重要说明及风险提示", React.createElement("b", null)), 
	                                    React.createElement("div", {className: "content"}, 
	                                        React.createElement("p", null, 
	                                            React.createElement("b", null, "本项目非银行存款、银行理财计划或银行代销产品，请认真阅读本重要说明及风险提示。在投资本项目前，投资人应确保自己完全明白该项投资的性质和所涉及的风险，详细了解和审慎评估该项目的资金投资方向、风险类型及预期收益等基本情况，在慎重考虑后自行决定购买与自身风险承受能力和资产管理需求匹配的产品。")
	                                        ), 
	                                        React.createElement("p", null, "1.本项目为网络投融资产品，募集资金主要用于融资人（借款人）的借款需要，如出现前述融资人（借款人）未按时足额支付本息等不利情况，则本项目将有收益为零甚至本金损失的可能。本平台不对融资人归还融资本息提供任何形式的担保。"), 
	                                        React.createElement("p", null, "2. 浙江新昌农村商业银行股份有限公司作为项目见证机构，仅对融资(借款)方在本平台上的披露信息进行形式审核，不对其现在及将来的资信状况、还款能力进行任何审核或评估；平台委托第三方支付机构进行资金监管及本金、利息清算。"), 
	                                        React.createElement("p", null, "3. 除本《项目说明书》中明确规定的收益及收益分配方式外，任何预计收益、测算收益或类似表述均属不具有法律约束力的用语，不代表投资人可能获得的实际收益，亦不构成本平台和项目见证机构对本项目的任何收益承诺。投资人所能获得的最终收益以本《项目说明书》所规定形式实际支付的款项为准， 且不超过根据《项目说明书》预期投资收益率计算所得的金额。"), 
	                                        React.createElement("p", null, "4. 本平台有权依法对本《项目说明书》进行解释。")
	                                    )
	                                )
	                            ), 
	                            React.createElement(TabItem, {tab: "项目说明书"}, 
	                                React.createElement("table", {className: "table-2 table-even", ref: "projectBookTb"}, 
	                                    React.createElement("tbody", {ref: "proBook"}, 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "项目名称："), 
	                                        React.createElement("td", null, _this.state.ProDetailVal.FinanceDetail.ProjectName)
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "项目期限："), 
	                                        React.createElement("td", null, React.createElement("span", {className: "fc-main"}, _this.state.ProDetailVal.FinanceDetail.Duration), " 天")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "投资（借出）及收益币种："), 
	                                        React.createElement("td", null, "人民币")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "产品类型："), 
	                                        React.createElement("td", null, "固定期限网络投融资产品")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "预期年化收益率："), 
	                                        React.createElement("td", null, React.createElement("span", {className: "fc-main"}, _this.state.ProDetailVal.FinanceDetail.Interest), "%")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "融资（总借入）金额："), 
	                                        React.createElement("td", null, React.createElement("span", {className: "fc-main"}, TotalAmount), "元")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "募集期："), 
	                                        React.createElement("td", null, _this.state.ProDetailVal.FinanceDetail.FormatProjectBeginTime, "～", _this.state.ProDetailVal.FinanceDetail.FormatJMBeginTime)
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "项目起息日："), 
	                                        React.createElement("td", null, "募集结束，资金划转至融资人账户后的首个工作日。资金在起息日前不计算利息")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "项目到期日："), 
	                                        React.createElement("td", null, _this.state.ProDetailVal.FinanceDetail.RepayBegin, "，投资资金在项目到期日当天不计算利息")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "资金到账日："), 
	                                        React.createElement("td", null, "到期日后1-3个工作日")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "最小投资（借款）单位："), 
	                                        React.createElement("td", null, React.createElement("span", {className: "fc-main"}, _minPart), "元，并须以最小投资单位的整数倍递增")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "超募："), 
	                                        React.createElement("td", null, "如多个投资人在募集期间进行的投资导致项目实际募集资金超过项目融资规模（即产生超募），平台将根据投资人的投资时间" + " " +
	                                            "顺序将顺序在后的投资资金/部份投资资金（即超募资金）于所投项目募集期结束日的T+1日（均为工作日，非工作日将延后至" + " " +
	                                            "下一工作日），通过第三方支付机构向投资人指定回款账户退款"
	                                        )
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "节假日："), 
	                                        React.createElement("td", null, "本项目在中国法定节假日期间亦可投标")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "税款："), 
	                                        React.createElement("td", null, "投资收益的应纳税款由投资人自行申报及缴纳")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "收益计算方法："), 
	                                        React.createElement("td", null, "期末收益=投资本金 x 预期年化收益 x 产品存续天数/", PageDM.days.value)
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "提前终止权："), 
	                                        React.createElement("td", null, "会员无权提前终止该产品或要求提前收取本金或收益")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "其他规定："), 
	                                        React.createElement("td", null, "到期日至实际到账之间，客户资金（含本金、收益、罚息等）不计利息")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "见证机构："), 
	                                        React.createElement("td", null, "浙江新昌农村商业银行股份有限公司")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "支付清算机构："), 
	                                        React.createElement("td", null, "中金支付有限公司")
	                                    ), 
	                                    React.createElement("tr", null, 
	                                        React.createElement("th", null, "工作日："), 
	                                        React.createElement("td", null, "浙江新昌农村商业银行股份有限公司对公业务工作日")
	                                    )
	                                    )
	                                )
	                            ), 
	                            React.createElement(TabItem, {tab: "成交记录"}, 
	                                React.createElement(InvestRecord, {ref: "InvestRecord"})
	                            )
	                        )
	                    )
	                )

	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null), document.getElementById('giraffe'));

/***/ },

/***/ 2:
/***/ function(module, exports) {

	/**
	 *
	 * @constructs
	 */
	var Tooltip = React.createClass({displayName: "Tooltip",
	    _addEventListener:function(obj,ev,fn){
			obj.addEventListener ? obj.addEventListener(ev,fn,false) : obj.attachEvent("on" + ev,fn)
	    },
	    _removeEventListener: function (obj, ev, fn) {
	        obj.removeEventListener ? obj.removeEventListener(ev, fn, false) : obj.detachEvent("on" + ev, fn)
	    },
		getDefaultProps: function() {
			return {
				container: document.body,
				position: 'top',
				fixed: true,
				space: 5
			}
		},
		componentDidMount: function() {
			this.container = this.props.container || document.body;
			this.componentEl = this.refs.tooltipbox;
			this.tooltipEl = document.createElement('div');

			var tooltipArrowEl = document.createElement('div');
			tooltipArrowEl.className = 'ucs-tooltip-arrow';

			var tooltipContentEl = document.createElement('div');
			tooltipContentEl.className = 'ucs-tooltip-inner';
			tooltipContentEl.innerHTML = this.props.title;

			this.tooltipEl.appendChild(tooltipArrowEl);
			this.tooltipEl.appendChild(tooltipContentEl);
			this.tooltipEl.className = 'ucs-tooltip ' + this.props.position;
			this.container.appendChild(this.tooltipEl);
			this.resetTooltip();
			var _componentEl =  this.componentEl;
			this._addEventListener(_componentEl, this.props.fixed ? 'mouseenter' : 'mousemove', this.handleMouseMove.bind(this));
			this._addEventListener(_componentEl, 'mouseleave', this.handleMouseOut.bind(this));
		},

		resetTooltip: function() {
			this.tooltipEl.style.left = '-500px';
			this.tooltipEl.style.top = '-500px';
			this.tooltipEl.style.visibility = "hidden";
		},

		handleMouseMove: function(e) {
			if(!this.props.title) {
				return;
			}

			var tooltipPosition = this.getTooltipPosition(e);
			var tooltipOffset = this.getTooltipOffset();

			this.tooltipEl.style.left = tooltipPosition.x + tooltipOffset.x + 'px';
			this.tooltipEl.style.top = tooltipPosition.y + tooltipOffset.y + 'px';
			this.tooltipEl.style.visibility = "visible";
		},

		handleMouseOut: function() {
			this.resetTooltip();
		},
		//定位到标签的位置
		getTooltipPosition: function(e) {
			var pointX;
			var pointY;
			var bodyRect = document.body.getBoundingClientRect();
			var containerRect = this.container.getBoundingClientRect();
			var containerOffsetX = containerRect.left - bodyRect.left;
			var containerOffsetY = containerRect.top - bodyRect.top;
			if(this.props.fixed) {
				var componentRect = this.componentEl.getBoundingClientRect();
				var componentOffsetX = componentRect.left - containerOffsetX;
				var componentOffsetY = componentRect.top - containerOffsetY;
				var componentWidth = this.componentEl.offsetWidth;
				var componentHeight = this.componentEl.offsetHeight;
				var cOffsetX = 0;
				var cOffsetY = 0;
				switch(this.props.position) {
					case 'top':
						cOffsetX = componentWidth / 2;
						cOffsetY = 0;
						break;
					case 'right':
						cOffsetX = componentWidth;
						cOffsetY = componentHeight / 2;
						break;
					case 'bottom':
						cOffsetX = componentWidth / 2;
						cOffsetY = componentHeight;
						break;
					case 'left':
						cOffsetX = 0;
						cOffsetY = componentHeight / 2;
						break;
				}
				pointX = componentOffsetX + cOffsetX + (window.scrollX || window.pageXOffset || document.documentElement.scrollLeft || 0);
				pointY = componentOffsetY + cOffsetY + (window.scrollY || window.pageYOffset || document.documentElement.scrollTop || 0);
			} else {
				var clientX = e.clientX;
				var clientY = e.clientY;
				pointX = clientX - containerOffsetX + (window.scrollX || window.pageXOffset || document.documentElement.scrollLeft || 0);
				pointY = clientY - containerOffsetY + (window.scrollY || window.pageYOffset || document.documentElement.scrollTop || 0);
			}
			return {
				x: pointX,
				y: pointY
			};
		},
		//获取偏移量
		getTooltipOffset: function() {
			var tooltipW = this.tooltipEl.offsetWidth;
			var tooltipH = this.tooltipEl.offsetHeight;
			var offsetX = 0;
			var offsetY = 0;
			switch(this.props.position) {
				case 'top':
					offsetX = -(tooltipW / 2);
					offsetY = -(tooltipH + Number(this.props.space));
					break;
				case 'right':
					offsetX = Number(this.props.space);
					offsetY = -(tooltipH / 2);
					break;
				case 'bottom':
					offsetX = -(tooltipW / 2);
					offsetY = Number(this.props.space);
					break;
				case 'left':
					offsetX = -(tooltipW + Number(this.props.space));
					offsetY = -(tooltipH / 2);
					break;
			}
			return {
				x: offsetX,
				y: offsetY
			};
		},
		render: function() {
			return (
			    React.createElement("div", {ref: "tooltipbox", className: this.props.className?("ucs-tooltip-wrap "+this.props.className):"ucs-tooltip-wrap"}, this.props.children)
	        )
		}
	});

	module.exports = Tooltip;

/***/ },

/***/ 22:
/***/ function(module, exports) {

	var TabItem=React.createClass({displayName: "TabItem",
	    render:function(){
	        return (this.props.children);
	    }
	});

	var Tabs=React.createClass({displayName: "Tabs",
	    getDefaultProps:function(){
	        return {
	            disabled:false,
	            defaultActiveKey:0
	        }
	    },
	    getInitialState:function(){
	        return {
	            currentIndex : this.props.defaultActiveKey
	        };
	    },
	    checkTitleIndex:function(index){
	        if(this.state.currentIndex==-1){
	            return "";
	        }else{
	            return index==this.state.currentIndex ? "ucs-tabs-active" : "";
	        }
	    },
	    checkContentIndex:function(index){
	        if(this.state.currentIndex==-1){
	            return "none";
	        }else{
	            return index==this.state.currentIndex ? "block" : "none";
	        }
	    },
	    _handleClick:function(index,disabled,e){
	        var source = e.target || e.srcElement;
	        if(!disabled){
	            var disabled=disabled?'disabled':'';
	            for(var i = 0; i < source.parentNode.childNodes.length; i++){
	                source.parentNode.childNodes[i].className = "";
	                this.refs['ucs-tabs-content'].childNodes[i].style.display = "none";
	            }
	            this.setState({
	                currentIndex: index
	            });
	            source.className = disabled+" "+this.checkTitleIndex(index);
	            this.refs['ucs-tabs-content'].childNodes[index].style.display = "block";
	        }
	        this.props.callback ? this.props.callback(this.state.currentIndex):"";
	    },
	    render:function(){
	        var _this=this;
	        return(
	            React.createElement("div", {className: "ucs-tabs"}, 
	                React.createElement("div", {className: "ucs-tabs-bar"}, 
	                    React.createElement("ul", null, 
	                        
	                            _this.props.children.map(function(element,index){
	                                var disabled=element.props.disabled?'disabled':'';
	                                return(
	                                    React.createElement("li", {onClick: _this._handleClick.bind(_this,index,element.props.disabled), className: disabled+" "+_this.checkTitleIndex(index)}, 
	                                         element.props.tab
	                                    )
	                                );
	                            })
	                        
	                    )
	                ), 
	                React.createElement("div", {className: "ucs-tabs-content", ref: "ucs-tabs-content"}, 
	                    
	                        _this.props.children.map(function(element,index){
	                            return(
	                                React.createElement("div", {className: "ucs-tabs-tabpane", style: {display: _this.checkContentIndex(index)}}, 
	                                    element.props.children
	                                )
	                            );
	                        })
	                    
	                )
	            )
	        );
	    }
	});

	Tabs.TabItem=TabItem;
	module.exports = Tabs;

/***/ },

/***/ 26:
/***/ function(module, exports) {

	/**
	 * Created by Administrator on 2017/4/11.
	 */
	var Pagination = React.createClass({displayName: "Pagination",
	    getDefaultProps: function () {
	      return {
	          pageVal:{}
	      }
	    },
	    getInitialState: function () {
	        return{
	            curPage:this.props.pageVal.curPage
	        }
	    },
	    onClick: function (curPage) {
	        this.setState({curPage:curPage});
	        this.props.onClick && this.props.onClick(curPage);
	    },
	    render: function(){
	        var _this = this;
	        var pageVal = _this.props.pageVal;
	        var curPage = _this.state.curPage;
	        var div = [];
	        if(pageVal.totalPage > 1 && pageVal.totalPage <= 7){
	            for(var i = 0; i <= pageVal.totalPage+1; i++){
	                var a = document.createElement("a");
	                a.setAttribute("href","javascript:;");
	                if(i==0){
	                    a.innerHTML = "&lt;";
	                    if(curPage > 1){
	                        a.onclick = function(){
	                            _this.onClick(curPage-1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else if(i == pageVal.totalPage+1){
	                    a.innerHTML = "&gt;";
	                    if(curPage < pageVal.totalPage){
	                        a.onclick = function(){
	                            _this.onClick(curPage+1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else{
	                    a.innerHTML = i;
	                    (function(ii){
	                        a.onclick = function(){
	                            _this.onClick(ii);
	                        };
	                    })(i);
	                    if(i == curPage){
	                        a.className = "current";
	                    }
	                }
	                div.push(a);
	            }
	        }else if(pageVal.totalPage > 7){
	            var dotIndex = 0;
	            if(curPage<=5 || (pageVal.totalPage - curPage) <= 4 ){
	                if((curPage - 1) < (pageVal.totalPage - curPage)){
	                    dotIndex = 6;
	                }else{
	                    dotIndex = 2;
	                }
	            }
	            for(var i = 0; i < 9; i++){
	                var a = document.createElement("a");
	                a.setAttribute("href","javascript:;");
	                if(i==0){
	                    a.innerHTML = "&lt;";
	                    if(curPage > 1){
	                        a.onclick = function(){
	                            _this.onClick(curPage-1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else if(i == 8){
	                    a.innerHTML = "&gt;";
	                    if(curPage < pageVal.totalPage){
	                        a.onclick = function(){
	                            _this.onClick(curPage+1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else{
	                    if(dotIndex == 0){
	                        if(i == 2 || i == 6){
	                            if(i == 2){
	                                a.onclick = function(){
	                                    _this.onClick(curPage-3);
	                                };
	                                a.className = "jump-prev";
	                                a.setAttribute("title","Previous 3 Pages");
	                            }else if(i == 6){
	                                a.onclick = function(){
	                                    _this.onClick(curPage+3);
	                                };
	                                a.className = "jump-next";
	                                a.setAttribute("title","Next 3 Pages");
	                            }
	                        }else{
	                            if(i == 1){
	                                a.innerHTML = 1;
	                                a.onclick = function(){
	                                    _this.onClick(1);
	                                };
	                            }else if(i == 7){
	                                a.innerHTML = pageVal.totalPage;
	                                a.onclick = function(){
	                                    _this.onClick(pageVal.totalPage);
	                                };
	                            }else if(i == 3){
	                                a.innerHTML = curPage-1;
	                                a.onclick = function(){
	                                    _this.onClick(curPage-1);
	                                };
	                            }else if(i == 4){
	                                a.innerHTML = curPage;
	                                a.onclick = function(){
	                                    _this.onClick(curPage);
	                                };
	                                a.className = "current";
	                            }else if(i == 5){
	                                a.innerHTML = curPage+1;
	                                a.onclick = function(){
	                                    _this.onClick(curPage+1);
	                                };
	                            }
	                        }
	                    }else if(dotIndex == 2){
	                        if(i == dotIndex){
	                            a.onclick = function(){
	                                _this.onClick(curPage-3);
	                            };
	                            a.className = "jump-prev";
	                            a.setAttribute("title","Previous 3 Pages");
	                        }else{
	                            if(i == 1){
	                                a.innerHTML = 1;
	                                a.onclick = function(){
	                                    _this.onClick(1);
	                                };
	                            }else{
	                                a.innerHTML = (pageVal.totalPage-(7-i));
	                                (function(i){
	                                    a.onclick = function(){
	                                        _this.onClick(pageVal.totalPage-(7-i));
	                                    };
	                                })(i);
	                            }
	                        }
	                        if((pageVal.totalPage-(7-i)) == curPage){
	                            a.className = "current";
	                        }
	                    }else if(dotIndex == 6){
	                        if(i == dotIndex){
	                            a.onclick = function(){
	                                _this.onClick(curPage+3);
	                            };
	                            a.className = "jump-next";
	                            a.setAttribute("title","Next 3 Pages");
	                        }else{
	                            if(i == 7){
	                                a.innerHTML = pageVal.totalPage;
	                                a.onclick = function(){
	                                    _this.onClick(pageVal.totalPage);
	                                };
	                            }else{
	                                a.innerHTML = i;
	                                (function(i){
	                                    a.onclick = function(){
	                                        _this.onClick(i);
	                                    };
	                                })(i);
	                            }
	                        }
	                        if(i == curPage){
	                            a.className = "current";
	                        }
	                    }
	                }
	                div.push(a);
	            }
	        }
	        return (
	            React.createElement("div", {className: "pagination"}, 
	                div
	            )
	        )
	    }
	});

	module.exports = Pagination;

/***/ },

/***/ 29:
/***/ function(module, exports) {

	/**
	 * Created by Administrator on 2017/3/23.
	 */

	var Breadcrumb = React.createClass({displayName: "Breadcrumb",
	    getDefaultProps: function(){
	        return{
	            separator:'>'   //分隔符
	        }
	    },
	    render: function(){
	        var that = this;
	        var len = this.props.children.length;
	        return (
	            React.createElement("div", {className: "ucs-breadcrumb"}, 
	                
	                    this.props.children.map(function (child,index) {
	                        if(index == len-1){
	                            return React.createElement("span", {className: "ucs-breadcrumb-link-last"}, child);
	                        }else{
	                            return React.createElement("span", null, child, React.createElement("span", {className: "ucs-breadcrumb-separator"}, that.props.separator));
	                        }
	                    })
	                
	            )
	        )
	    }
	});
	Breadcrumb.Item = React.createClass({displayName: "Breadcrumb.Item",
	    render: function () {
	        return (
	            this.props.href ?
	                React.createElement("a", {href: this.props.href}, this.props.children) :
	                React.createElement("span", null, this.props.children)
	        )
	    }
	});

	module.exports = Breadcrumb;

/***/ },

/***/ 31:
/***/ function(module, exports) {

	//查询样式是否存在
	function hasClass(elem, cls) {
	    elem = elem || {};
	    return new RegExp("\\b" + cls + "\\b").test(elem.className);
	};
	//添加样式
	function addClass(elem, cls) {
	    elem = elem || {};
	    hasClass(elem, cls) || (elem.className += " " + cls);
	    elem.className = elem.className.replace(/^\s|\s$/g, "").replace(/\s+/g, " ");
	    return this;
	};
	//删除样式
	function removeClass(elem, cls) {
	    elem = elem || {};
	    if (hasClass(elem, cls)) {
	        elem.className = elem.className.replace(new RegExp("(\\s|^)" + cls + "(\\s|$)"), "");
	    }
	    return this;
	};
	var InputNumber = React.createClass({displayName: "InputNumber",
	    getDefaultProps: function () {
	        return {
	            min: "",
	            max: "",
	            value: "",
	            step: "",
	            onChange: "",
	            disabled: "",
	            className: "",
	            id: ""
	        }
	    },
	    getInitialState: function () {
	        return {
	            value: this.props.value
	        }
	    },
	    componentDidMount: function(){

	    },
	    handelAdd: function () {
	        var _this = this;
	        if(hasClass(_this.refs.add,"disabled")){
	            return;
	        }
	        var v = parseInt(_this.state.value) + parseInt(_this.props.step);
	        if (v >= parseInt(_this.props.max)) {
	            addClass(_this.refs.add,"disabled");
	            v = _this.props.max;
	        }
	        _this.setState({
	            value: v
	        });
	        _this.props.onChange ? _this.props.onChange(_this.state.value) : "";
	    },
	    handelLess: function () {
	        var _this = this;
	        if(hasClass(_this.refs.less,"disabled")){
	            return;
	        }
	        var v = parseInt(_this.state.value) - parseInt(_this.props.step);
	        if (v <= parseInt(_this.props.min)) {
	            addClass(_this.refs.less,"disabled");
	            v = _this.props.min;
	        }
	        _this.setState({
	            value: v
	        });
	        _this.props.onChange ? _this.props.onChange(_this.state.value) : "";
	    },
	    handleChange: function (e) {
	        var _this = this;
	        var _e = e.target || e.srcElement;
	        var v = _e.value;
	        if (v > parseInt(_this.props.max)) {
	            v = _this.props.max;
	            addClass(_this.refs.add,"disabled");
	        } else if (v < parseInt(_this.props.min)) {
	            v = _this.props.min;
	            addClass(_this.refs.less,"disabled");
	        }

	        if (!isNaN(v)) {
	            _this.setState({
	                value: v
	            });
	        } else {
	            _this.setState({
	                value: _this.props.min
	            });
	        }

	        _this.props.onChange ? _this.props.onChange(_this.state.value) : "";
	    },
	    setValue: function(v){
	        this.setState({
	            value: v
	        });
	    },
	    getValue: function(){
	        return this.state.value;
	    },
	    render: function () {
	        var classNameLess="";
	        var classNameAdd="";

	        if(this.props.disabled || this.state.value <= this.props.min){
	            classNameLess = "disabled";
	        }
	        if(this.props.disabled || this.state.value >= this.props.max){
	            classNameAdd = "disabled";
	        }
	        return (
	            React.createElement("div", {className: this.props.className?"ucs-input-number "+this.props.className:"ucs-input-number", id: this.props.id}, 
	                React.createElement("a", {className: "less iconfont icon-less "+classNameLess, onClick: this.handelLess.bind(this), ref: "less"}), 
	                React.createElement("input", {disabled: this.props.disabled, onChange: this.handleChange.bind(this), value: this.state.value, className: "ucs-input", ref: "inputnumber"}), 
	                React.createElement("a", {className: "add iconfont icon-add "+classNameAdd, onClick: this.handelAdd.bind(this), ref: "add"})
	            )
	        )
	    }
	});
	module.exports = InputNumber;


/***/ },

/***/ 33:
/***/ function(module, exports) {

	/**
	 * 
	 * @constructs 
	 */
	var Progress = React.createClass({displayName: "Progress",
	    getDefaultProps: function() {
	        return {
	            type: 'line',
	            showInfo: true,
	            percent: 0
	        };
	    },
	    render: function(){
	        var showInfo = this.props.showInfo;
	        var info;
	        var infoPos = this.props.infoPosition;
	        var textProps = {};

	        if(showInfo){
	            if(infoPos){
	                typeof (infoPos) == 'object'? (
	                    textProps.style = infoPos
	                ):(
	                    textProps.style = {left:+this.props.percent + "%"}
	                )
	            }
	            textProps.className = 'ucs-progress-text';
	            if("format" in this.props){
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.format);
	            }else{
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.percent, "%");
	            }
	        }
	        var pClass = this.props.className? 'ucs-progress '+this.props.className:'ucs-progress';
	        return (
	            React.createElement("div", {className: pClass}, 
	                React.createElement("div", {className: "ucs-progress-inner"}, 
	                    React.createElement("span", {className: "ucs-progress-bg", style: {width:+this.props.percent + "%"}})
	                ), 
	                info
	            )
	        )
	    }
	});

	module.exports = Progress;

/***/ },

/***/ 60:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/4/18.
	 */
	var Countdown = __webpack_require__(61);
	var UFormatter = __webpack_require__(62);

	var InvestAction = React.createClass({displayName: "InvestAction",
	    getDefaultProps:function(){
	        return {
	            data:{
	                minFlag:true,
	                flag:{
	                    login:true,
	                    loginUrl:"",
	                    confirmUrl:"",
	                    ProjectStatus:1,
	                    JMBeginTime:"",
	                    ProjectBeginTime:"",

	                    MinInvestPartsCount:"",
	                    MaxInvestPartsCount:"",
	                    EachPartAmount:""
	                }
	            }
	        }
	    },
	    getInitialState:function(){
	        return {
	            data: this.props.data
	        }
	    },
	    _clickHandle:function(){
	        var jmTime = new Date(UFormatter.formatTime(this.state.data.flag.JMBeginTime,"yyyy/mm/dd hh:mm:ss")).getTime();
	        if(this.state.data.flag.ProjectStatus == 3 || jmTime < new Date().getTime()){
	            return;
	        }

	        var confirmUrl = this.state.data.flag.confirmUrl;
	        if(typeof confirmUrl == 'function' && confirmUrl.constructor == Function){
	            confirmUrl();
	        }
	    },
	    _overFn:function(){
	        // console.log('满标')
	        this.setState({
	            data:{
	                flag:{
	                    ProjectStatus:3
	                }
	            }
	        });
	        UEventHub.emit('countOver',{ProjectStatus:3});
	    },
	    _actionFn:function(){
	        // console.log("马上投标")
	        this.setState({
	            data:{
	                flag:{
	                    ProjectStatus:1
	                }
	            }
	        });
	        UEventHub.emit('countOver',{ProjectStatus:1});
	    },
	    render:function(){
	        var _this = this;
	        var item = this.state.data.flag;
	        if(item.login == undefined){
	            item.login = true;
	        }
	        //按钮文案
	        var arrBtn = [];
	        if (this.state.data.minFlag) {
	            arrBtn = [
	                {
	                    text:"投标中",
	                    className:"btn-bidnow"
	                },
	                {
	                    text:"预热中",
	                    className:"btn-wait"
	                },
	                {
	                    text:"已满标",
	                    className:"btn-full"
	                },
	                {
	                    text:"计息中",
	                    className:"btn-full"
	                },
	                {
	                    text:"回款中",
	                    className:"btn-full"
	                },
	                {
	                    text:"已还款",
	                    className:"btn-full"
	                }
	            ];
	        }
	        else {
	            arrBtn = [
	                {
	                    text: "投标中",
	                    className: "btn-bidnow"
	                },
	                {
	                    text: "预约投资",
	                    className: "btn-wait"
	                },
	                {
	                    text: "已满标",
	                    className: "btn-disabled"
	                },
	                {
	                    text: "计息中",
	                    className: "btn-disabled"
	                },
	                {
	                    text: "回款中",
	                    className: "btn-disabled"
	                },
	                {
	                    text: "已还款",
	                    className: "btn-disabled"
	                }
	            ];
	        }

	        if(!this.state.data.minFlag){
	            var jmTime = new Date(UFormatter.formatTime(this.state.data.flag.JMBeginTime,"yyyy/mm/dd hh:mm:ss")).getTime();
	            if(jmTime < new Date().getTime()){
	                arrBtn[2].className = "btn-disabled";
	                arrBtn[0] = arrBtn[2];
	            }else{
	                arrBtn[0].text = item.login?"马上投资":"马上登录投资";
	            }
	        }else{
	            arrBtn[0].text = "马上投资";
	        }

	        var _url = "";
	        // if(item.login){
	            if(item.confirmUrl && typeof item.confirmUrl == "string"){
	                _url = item.confirmUrl;
	            }else{
	                _url = "javascript:void(0)";
	            }
	        // }else{
	        //     _url = item.loginUrl;
	        // }
	        if(item.ProjectStatus){
	            return(
	                React.createElement("div", {className: this.state.className}, 
	                    this.state.data.minFlag ?
	                        React.createElement("a", {className: "btn "+arrBtn[item.ProjectStatus - 1].className, href: item.confirmUrl}, 
	                            arrBtn[item.ProjectStatus - 1].text
	                        ) :
	                        React.createElement("a", {className: "btn "+arrBtn[item.ProjectStatus - 1].className, 
	                           href: _url, 
	                           onClick: _this._clickHandle.bind(_this)}, 
	                            arrBtn[item.ProjectStatus - 1].text
	                        ), 
	                    
	                    
	                        item.ProjectStatus == 1 ?
	                            React.createElement("p", null, "距项目结束还有：", React.createElement(Countdown, {timeRemaining: item.JMBeginTime, tpl: "{d}天{h}小时{m}分{s}秒", overCallback: this._overFn.bind(this)})) :
	                            item.ProjectStatus == 2 ?
	                                React.createElement("p", null, "距项目开始还有：", React.createElement(Countdown, {timeRemaining: item.ProjectBeginTime, tpl: "{d}天{h}小时{m}分{s}秒", overCallback: this._actionFn.bind(this)})) : ""
	                    
	                )
	            )
	        }else{
	            return React.createElement("div", null)
	        }
	    }
	});
	module.exports = InvestAction;

/***/ },

/***/ 61:
/***/ function(module, exports) {

	/**
	 * Created by DuHuiling on 2017/3/21.
	 */
	function formateDate(dateStringInRange,timeInRange) {
	    var isoExp = /^\s*(\d{4})-(\d\d)-(\d\d)\s*$/,
	        date = new Date(NaN), month,
	        parts = isoExp.exec(dateStringInRange);

	    if(parts) {
	        month = +parts[2];
	        date.setFullYear(parts[1], month - 1, parts[3]);
	        if(timeInRange && typeof timeInRange == "string"){
	            var times = timeInRange.split(':');
	            date.setHours(times[0],times[1],times[2])
	        }
	    }
	    return date;
	}
	var Countdown = React.createClass({displayName: "Countdown",
	    getDefaultProps:function(){
	        return{
	            timeRemaining:"2017-04-01 0:0:0",
	            tpl:"{d}天{h}时{m}分{s}秒",
	            overCallback:function(){}
	        }
	    },
	    start:function(){
	        var _this = this;
	        _this.countdownTime = setInterval(function(){
	            _this._init();
	        },1000);
	    },
	    stop:function(){
	        clearInterval(this.countdownTime);
	    },
	    over:function(){
	        this.stop();
	        console.warn("时间已过");
	        this.props.overCallback();
	    },
	    _init:function(){
	        var _timeRemaining = this.props.timeRemaining;
	        var _start = new Date(_timeRemaining).getTime();

	        if(!_timeRemaining){
	            _start = 0;
	            this._countdown(0);
	            return;
	        }
	        if(window.attachEvent && typeof _timeRemaining == "string" || isNaN(_start)){
	            var timeArr = _timeRemaining.split(' ');
	            _start = formateDate(timeArr[0],timeArr[1]).getTime();
	        }
	        var _now = new Date().getTime(),
	            second = _start - _now;
	        this._countdown(second);
	    },
	    _countdown:function(second){
	        var _node = this.refs.countdown;
	        var _this = this;
	        if(second < 0){
	            _this.over();
	            return;
	        }
	        var _ts = second / 1000 / 60 / 60 % 24,
	            _d = parseInt(second / 1000 / 60 / 60 / 24),    //得到天数
	            _h = parseInt(_ts),      //得到小时
	            _m = parseInt((_ts - _h) * 60),        //得到分钟
	            _s = Math.floor(((_ts - _h) * 60 - _m) * 60);        //得到秒数

	        var format = this.props.tpl, numArr = [], formatArr = [];
	        if(format.indexOf("{d}") >= 0){
	            numArr.push({
	                value:_d,
	                className:"ucs-count-day"
	            });
	        }
	        if(format.indexOf("{h}") >= 0){
	            numArr.push({
	                value:_h,
	                className:"ucs-count-hour"
	            });
	        }
	        if(format.indexOf("{m}") >= 0){
	            numArr.push({
	                value:_m,
	                className:"ucs-count-min"
	            });
	        }
	        if(format.indexOf("{s}") >= 0){
	            numArr.push({
	                value:_s,
	                className:"ucs-count-sec"
	            });
	        }

	        format = format.replace("{d}","-");
	        format = format.replace("{h}","-");
	        format = format.replace("{m}","-");
	        format = format.replace("{s}","-");
	        formatArr = format.split('-');

	        var innHtml = (
	            React.createElement("span", null, 
	                
	                    numArr.map(function(v,index){
	                        var _v = v.value;
	                        return React.createElement("p", null, React.createElement("span", {className: v.className}, _v), formatArr[(index+1)])
	                    })
	                
	            )
	        )

	        ReactDOM.render(innHtml,this.refs.countdown);
	    },
	    componentDidMount:function(){
	        if(this.props.timeRemaining){
	            this._init();
	            this.start();
	        }else{
	            this._countdown(0);
	        }
	    },
	    render:function(){
	        return(
	            React.createElement("div", {ref: "countdown", className: "ucs-count"}

	            )
	        )
	    }
	});
	module.exports = Countdown;

/***/ },

/***/ 62:
/***/ function(module, exports) {

	/**
	 * 数字格式化
	 * 方法ToDigits2和formatMoney是之前后端写的，这里复制过来
	 *
	 * formaTime:
	 * @param time 日期
	 * @param [format] 格式 {"yyy-mm-dd"（默认）|"yyyy-mm-dd hh:mm:ss"|"yyyy/mm/dd"|"yyyy/mm/dd hh:mm:ss"}
	 *
	 *
	 */
	var UFormatter = (function(){
	    return {
	        ToDigits2 : function (floatVal) {
	            var strResult = parseFloat(floatVal).toFixed(4).toString();
	            return parseFloat(strResult.substr(0, strResult.length - 2));
	        },
	        formatMoney : function (m, fixedNumParm) {
	            m = m.toString();
	            var newStr = "";
	            var fixedNum = fixedNumParm || 2;
	            if (m.indexOf('.') > -1 || fixedNumParm != undefined) {
	                m = parseFloat(m);
	                var a = m.toFixed(fixedNum).split('.')[0];
	                var b = m.toFixed(fixedNum).split('.')[1];
	                if (a.length > 12) {
	                    newStr = a.substr(0, a.length - 12) + "," + a.substr(a.length - 12, 3) + "," + a.substr(a.length - 9, 3) + "," + a.substr(a.length - 6, 3) + "," + a.substr(a.length - 3, 3) + "." + b;
	                } else if (a.length > 9) {
	                    newStr = a.substr(0, a.length - 9) + "," + a.substr(a.length - 9, 3) + "," + a.substr(a.length - 6, 3) + "," + a.substr(a.length - 3, 3) + "." + b;
	                } else if (a.length > 6) {
	                    newStr = a.substr(0, a.length - 6) + "," + a.substr(a.length - 6, 3) + "," + a.substr(a.length - 3, 3) + "." + b;
	                } else if (a.length > 3) {
	                    newStr = a.substr(0, a.length - 3) + "," + a.substr(a.length - 3, 3) + "." + b;
	                } else {
	                    newStr = a + "." + b;
	                }
	            } else {
	                if (m.length > 12) {
	                    newStr = m.substr(0, m.length - 12) + "," + m.substr(m.length - 12, 3) + "," + m.substr(m.length - 9, 3) + "," + m.substr(m.length - 6, 3) + "," + m.substr(m.length - 3, 3);
	                } else if (m.length > 9) {
	                    newStr = m.substr(0, m.length - 9) + "," + m.substr(m.length - 9, 3) + "," + m.substr(m.length - 6, 3) + "," + m.substr(m.length - 3, 3);
	                } else if (m.length > 6) {
	                    newStr = m.substr(0, m.length - 6) + "," + m.substr(m.length - 6, 3) + "," + m.substr(m.length - 3, 3);
	                } else if (m.length > 3) {
	                    newStr = m.substr(0, m.length - 3) + "," + m.substr(m.length - 3, 3);
	                } else {
	                    newStr = m;
	                }
	            }
	            return newStr;
	        },
	        formatTime : function(time, format){
	            var _time = new Date(time), TArr;
	            var format = format ? format.toLowerCase() : "yyyy-mm-dd";
	            var Ddigit = function(n){
	                var _n = Number(n);
	                _n = _n > 9 ? _n : "0"+_n;
	                return _n;
	            };
	            if(typeof time == "string" && time.indexOf("-") > -1){
	                var ps = time.split(" ");
	                var pd = ps[0].split("-");
	                var pt = ps.length>1 ? ps[1].split(":"): ["00","00","00"];
	                TArr = [pd[0], Ddigit(pd[1]), Ddigit(pd[2]), Ddigit(pt[0]), Ddigit(pt[1]), Ddigit(pt[2])];
	            } else {
	                var _y = _time.getFullYear();
	                var _mon = _time.getMonth() + 1;
	                var _d = _time.getDate();
	                var _h = _time.getHours();
	                var _m = _time.getMinutes();
	                var _s = _time.getSeconds();
	                TArr = [_y, Ddigit(_mon), Ddigit(_d), Ddigit(_h), Ddigit(_m), Ddigit(_s)];
	            }
	            var TStr;
	            if(format == "yyyy-mm-dd"){
	                TStr = TArr[0] + "-" + TArr[1] + "-" + TArr[2];
	            }else if(format == "yyyy-mm-dd hh:mm"){
	                TStr = TArr[0] + "-" + TArr[1] + "-" + TArr[2] + " " + TArr[3] + ":" + TArr[4];
	            }else if(format == "yyyy-mm-dd hh:mm:ss"){
	                TStr = TArr[0] + "-" + TArr[1] + "-" + TArr[2] + " " + TArr[3] + ":" + TArr[4] +":" + TArr[5];
	            }else if(format == "yyyy/mm/dd"){
	                TStr = TArr[0] + "/" + TArr[1] + "/" + TArr[2];
	            }else if(format == "yyyy/mm/dd hh:mm:ss"){
	                TStr = TArr[0] + "/" + TArr[1] + "/" + TArr[2] + " " + TArr[3] + ":" + TArr[4] +":" + TArr[5];
	            }
	            return TStr;
	        },
	        formatBankCard:function (bankid) {
	            var v = bankid;
	            if(/\S{5}/.test(v)){
	                v = v.replace(/\s/g, '').replace(/(.{4})/g, "$1 ");
	            }
	            return v;
	        }
	    };
	})();
	module.exports = UFormatter;

/***/ }

/******/ });